package com.hos.punchtheclocksystem.service.impl;

import com.hos.punchtheclocksystem.mapper.AccountMapper;
import com.hos.punchtheclocksystem.pojo.DoctorAccount;
import com.hos.punchtheclocksystem.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    AccountMapper mapper;

    @Override
    public DoctorAccount selectDoctorByDocId(Integer docId) {
        return mapper.selectDoctorByDocId(docId);
    }

    @Override
    public void updateDocById(DoctorAccount doctorAccount) {
        mapper.updateById(doctorAccount);
    }



    public void Insert(DoctorAccount doctorAccount){
        mapper.insert(doctorAccount);
    }

}
